from rest_framework.viewsets import ModelViewSet

from books.models import HeroInfo
from hero_drf.seriallizers import HeroModelSerializer


class HeromanyModelViewset(ModelViewSet):
    """
        获取单一图书和修改删除
    """

    serializer_class = HeroModelSerializer
    queryset = HeroInfo.objects.all()